Latest Questions

I installed the Python module, but it still says it's not there's no module

When I make Python code, I keep getting errors. (No module named 'sklearn' and Failed to open file b'C:\\Users\\\xea\xb9\x80\xec\x8a\xb9\xec\xb2\xa0\\AppData\\L

TypeError: _API.default is not a constructor with Jest tests

I have an API class that I am trying to use in a React app. // API file class API { ... } export default API; // Other file import API from "utils/API"; con

Import error: 'SimpleExperiment' while running BOTORCH example code

I am trying to work with Bayesian Optimisation for my Numerical model run, Optimising its parameters. For this I am using BoTorch. Its example code is given as

To get the default printer name

To get the default printer name . This code is what I am using, In order to get this <script language="javascript" type="text/javascript"> function

Find a probability of Poisson distribution in R

Can somebody help me how can I calculate a probability p from the Poisson equation (programming in R)? I know that there is the ppois function, but I'm not sure

Creating a centered carousel with react-alice-carousel

I have struggled the whole day to create a centered carousel with react-alice-carousel library and the results are those. Link to the library here Basically I a

GNU Make: expand pattern before passing to Shell

I want to use an awk script to figure out the which modules have to be compiled before I can compile a FORTRAN source file. My project is structured in a way th

No output in the parent process without fflush(stdout)

I'm trying to understand what is behind this behaviour in my parent process. Basically, I create a child process and connect its stdout to my pipe. The parent p

How to use the data from different model and context?

I made the small app, and designed like this: return MultiProvider( providers: [ ChangeNotifierProvider(create: (context) => AModel()),

NGRX router-store: selectCurrentRoute selector undefined

I'm trying to use the selectCurrentRoute selector, but I only get undefined. export interface AppState { router: RouterReducerState<RouterStateUrl> } e

remove all rows including words (character) in numpy 2d array python

How can I remore words in my 2d array: from: array([['111', 'ACTG1'], ['131', '124'], ['95', '123'], ['95', '124'], ['95', 'ACTG1'],

Focus on a TextField using a keyboard shortcut

I have a macOS Monterrey app that has a TextField on the toolbar. I use this to search for text on my app. Now, I'm trying to add a keyboard shortcut to focus o

How to filter similar line with similar angle and distance?

I have to filter similar line with similar theta difference < pi/180*4 and rho difference < 4. My code and test code are as follows, but function is too l

Xamarin Drag and drop how to edit balloon icon and text see image

Using the drag drop sample https://github.com/xamarin/xamarin-forms-samples/tree/main/WorkingWithGestures/DragAndDropGesture I'm not sure its actually a notify

az acr command working fine in bash run but not in pipeline

I am running below command from bash command line (Ubuntu subsystem) az acr import --username AAAA --password AAAA --name AAAA --source "AAAA/AAAA:AAA" --image

How to query relational data in ascending order in strapi?

I have this query that works async find(ctx) { let { _start, _limit } = ctx.request.query; console.log(ctx.request.query) _limit ? 0 : (_limit = 1

Typescript const enum alternative

More and more modern Typescript transpilers have moved toward a strategy of per-module transpilation, which significantly increases build speed, but eliminates

The argument type 'OrderItem' can't be assigned to the parameter type 'OrderItem'

I am unable to assign my one class to another even though I have imported the lib for them. I am following a course . In this I will fetch the orders from fireb

Why does column + column concatenation create arrays for some Windows accounts?

When running the below Python code, I get different results depending on the user account/admin privileges that is used. The code is saved as test.py on a Windo

verify if bloomberg-anywhere pdblp session is valid

I want to implement a check if import pdblp is active and if not exit the session. I note from this link (Bloomberg Anywhere + pdblp or xbbg + not logged in) th

What are the difference between useInfiniteQuery vs QueryClientProvider usage in React Query?

So I've encountered a confusion on the preferable usage of QueryClientProvider and useInfiniteQuery. I've been using the useInfiniteQuery function as a global s

SQL Query with 2 conditions but from different tables

I have the below query that has only one condition, which is if the companies are included in the table, then mark them as "Yes" under [Competitor] column, if t

Is there a possibility to set RefreshTokenUsage in oidc client?

i have a problem with my token. when we start our program, the cache should be checked for a valid token. This works for the first time, but afterwards refreshT

Creating db tables with SQLAlchemy and running Celery tasks raises "error with status PGRES_TUPLES_OK and no message from the libpq"

I have an application that runs 2 tasks every minute. Both of them have almost the same code, except for the API endpoint they communicate with (see below). Whe

Mac M1 apple chip: Hyperledger Fabric samples download: "2.4.1 platform specific fabric binary is not available to download" Error

On my mac M1 computer, Trying to download Fabric binaries and images using following command: curl -sSL <URL for Fabric 2.4.1> | bash -s Getting the err

Update all affected rows with specific values on PostgreSQL

I have the simplified version of the table I have below. Each row has an item_order value partitioned by its parent_id. item_id item_name parent_id item_order

check list of gameobject has active gameobject and insert into other list

i have a list of gameobject and I would like to check if each of those is currently active in the scene. The following is my code. foreach (GameObject hazard in

Python - Conditional 2D Permutation

Question: How might it be possible to calculate the permutations on a 2D array, but such that the sum of the indicies cannot exceed a certain number? E.g: maxsu

How can I use javascript to hide by default the navigation links in my navbar on small screens?

I set up my navber using tailwind css and was able to make it responsive. When viewed on a smaller screen the navigation links are displayed underneath each oth

Google Contacts Fields to fill variables in email template

First of all, thank you for your time. I have been looking for a while for a program, a script or anything that could help me automate a task that otherwise is